package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.example.demo.service.CoinService;

@Component
public class TestTask {
	@Autowired
	private CoinService coinService;
	
	@Scheduled(fixedDelay=600000)
	public void test() {
		coinService.getEthCoin();
	}

}
